Automattic\Jetpack\Stats_Admin\REST_Controller A

Total Complexity 63
Dependencies 7
Dependents 1
Total lines 567
Lines of code 364
Logical lines of code 118
Comment lines 132
Methods 18
Properties 2

Methods 18

Method Rating Maintainability Complexity Lines of code
get_stats_resource()
B
45 18 40
register_rest_routes()
S
36 1 119
filter_and_build_query_string()
S
61 6 13
get_single_post_likes()
S
51 5 28
request_as_blog_cached()
S
51 5 27
get_site_posts()
S
51 5 26
get_wp_error()
S
58 4 15
get_single_resource_stats()
S
59 3 16
get_single_post()
S
62 3 11
can_user_view_wordads_stats_callback()
S
71 3 6
can_user_view_general_stats_callback()
S
71 3 6
site_has_never_published_post()
S
60 1 15
get_wordads_earnings()
S
62 1 13
get_wordads_stats()
S
62 1 13
get_site_stats()
S
80 1 3
update_notice_status()
S
78 1 3
get_forbidden_error()
S
68 1 7
__construct()
S
80 1 3